/*
 * @Descripttion:
 * @Author: armin
 * @Date: 2021-07-20 17:12:55
 * @LastEditors: armin
 * @LastEditTime: 2021-07-20 17:18:02
 */
import { onUnmounted } from 'vue'
function useDOMCreate (nodeId: string) {
  const node = document.createElement('div')
  node.id = nodeId
  document.body.appendChild(node)
  onUnmounted(() => {
    document.body.removeChild(node)
  })
}

export default useDOMCreate
